CES Help Document > Discord Bots > Discord Review Bot

Discord Review Bot

Features

  • Modal-based review submission
  • Submit with or without Discord tag
  • Rating system (1–5)
  • Optional feedback and purchase info
  • Optional image URL support

Admin Slash Commands:

  • /reviewstats — Show total or per-user review data
  • /reviewlist — List all reviewers
  • /resetreviews — Clear all reviews
  • /deletereview — Remove a user's review

All reviews stored locally in reviews.json

Installation & Setup

  1. Requirements
    • Make sure you have:
    • Node.js installed
    • A VPS or host where the bot can run 24/7

2. Install Dependencies

npm install discord.js dotenv

3. Configure Environment

  • Open .env file in the root folder and add yout info

BOT_TOKEN=your-bot-token-here
CLIENT_ID=your-discord-app-client-id
GUILD_ID=your-server-id
COMMAND_CHANNEL_ID=channel-id-for-typing-!review
REVIEW_CHANNEL_ID=channel-id-where-review-is-posted
ADMIN_ROLE_ID=role-id-allowed-to-use-admin-commands

Use Developer Mode in Discord to copy Channel and Role IDs.

4. Start the Bot

node index.js

Using the Bot

  1. In your designated command channel, type:

!review

Two buttons will appear:

✅ Review (Named)

🕵️ Review (Anonymous)

  • Once clicked, a modal will appear prompting:

  • Star rating (1–5)

  • Feedback (required)

  • What you purchased (optional)

  • Image URL (optional)

The bot then posts the review as a styled embed in your review channel.

CommandDescription
/reviewstatsShow review count and average score
/reviewlistList all Discord users who reviewed
/resetreviewsClear all reviews in reviews.json
/deletereviewRemove a specific user's review
These commands require the user to have the configured
 ADMIN_ROLE_ID  ``````

Notes

  • No external data is collected.
  • The bot does not use threads or DMs.
  • All review data is stored in a local file (reviews.json).
  • You can reset reviews anytime without breaking functionality.

Troubleshooting

IssueFix
Bot doesn’t respond to !reviewMake sure it's in the correct channel & has permission to read/send
Slash commands don’t workCheck if the bot is registered with Discord via your client ID
Bot crashes or doesn’t startCheck your .env formatting and make sure all dependencies are installed
Review posts but missing fieldsEnsure all modal inputs are being submitted by the user

Self-Hosting Tips

Use pm2 to keep your bot online:

pm2 start index.js --name DiscordReviewBot

Need Help?

join the support Discord



Suggest an edit

Review this page

crazyeyes29

BOT Discord